package com.hxzy.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author Administrator
 */
@ApiModel(value = "商家注册短信验证")
@Getter
@Setter
@ToString
public class RecruitSmsDTO  {

    @NotBlank(message = "短信验证码不能为空")
    @ApiModelProperty(value = "短信验证码",required = true)
    private String code;

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "(?:0|86|\\+86)?1[3-9]\\d{9}")
    @ApiModelProperty(value = "手机号",required = true)
    private String loginName;

    @NotBlank(message = "令牌不能为空")
    @ApiModelProperty(value = "令牌",required = true)
    private String uuid;
}
